package it.pecuswap.commons.client.rest.interfaces;

import it.pecuswap.commons.dto.UsersDTO;
import it.pecuswap.commons.exceptions.PecuswapRestException;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;

@Path("/rest")
public interface UserServiceInterface {

	@GET
	@Path("/userService")
	@Produces("application/json")
	UsersDTO findUserByUserName(@QueryParam("username") String userName) throws PecuswapRestException;
	
	@PUT
	@Path("/complexExample")
	@Produces("application/json")
	@Consumes("application/json")
	UsersDTO complexExample(UsersDTO dummy) throws PecuswapRestException;
	
}
